class Restaurant:
	""" 餐馆对象 """
	def __init__(self, name ,type):
		self.name = name
		self.type = type
		self.number_served = 0

	def dscribe(self):
		print(f"餐馆名称：{self.name}, 餐馆类型: {self.type}")

	def open(self):
		print(f"{self.name} 已经开业")

	def set_number_served(self, number_served):
		if number_served > self.number_served:
			self.number_served = number_served
		else:
			print("服务人数不能回退")

	def increment_number_served(self, increment_number_served):
		if increment_number_served <= 0:
			print("必须输入正确的增加人数")
		else:
			self.number_served += increment_number_served
	def read_number_served(self):
		return self.number_served

class IceCreamStand(Restaurant):
	"""冰淇淋餐馆"""
	def __init__(self, name ,type):
		super().__init__(name, type)
		self.flavors = []
	def show_ice_cream(self):
		super().dscribe()
		print(f"\t出售的冰淇淋种类：{self.flavors}")
	def add_ice_cream(self, *ice_creams):
		for ice_cream in ice_creams:
			self.flavors.append(ice_cream)

ice_cream_stand = IceCreamStand("太阳冰淇淋", "冰淇淋店")
ice_cream_stand.dscribe()
ice_cream_stand.show_ice_cream()
ice_cream_stand.add_ice_cream('辣椒', '火山', '奥迪奥')
ice_cream_stand.show_ice_cream()